/*
 * @Author: yyf
 * @Date: 2018-05-15
 * @description: 事件--相关投融资事件
*/

import { apiHttp } from '../../apiHttp';
import Api from '../../../api/event/eventFinancingController.api';
import { JsonResult, EventFinancingDto } from '../../../api/Interface';
import { EventPublicSearchDto } from '../../../service/event/Interface';


export default {
    // 获取相关投融资事件列表
    eventFinancingPage: async (eventPublicSearchDto: EventPublicSearchDto ): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.eventFinancingPage, eventPublicSearchDto );
        return res;
    },
    // 重新生成相关投融资事件
    generateEventFinancing: async (eventFinancingDto: EventFinancingDto ): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.generateEventFinancing, eventFinancingDto );
        return res;
    },
    // 是否参与计算
    canCalculate: async (eventFinancingDto: EventFinancingDto ): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.canCalculate, eventFinancingDto );
        return res;
    },
};